package org.zhuchen.lambda;

import java.util.Arrays;
import java.util.List;

/**
 * <p>
 * Java 8 Lambda在集合中的使用
 * </p>
 *
 * @author: zhu.chen
 * @date: 2021/3/15
 * @version: v1.0.0
 */
public class CollectionLambda {

    public static void main(String[] args) {
        List features = Arrays.asList("Lambdas", "Default Method", "Stream API", "Date and Time API");
        features.forEach(n -> {
            System.out.println(n);
        });
        features.forEach(System.out::println);
    }

}
